#ifndef TESTER_EXAMPLE_BUG_H_
#define TESTER_EXAMPLE_BUG_H_

#include <stdexcept>

class Bug {
   public:
      int getNumber_2() {
         return 1;   //Bug!
      }

      int getNumber_1() {
         throw 9;  //Bug
         return 1;
      }

      int getNumber_0() {
         throw std::bad_alloc();//Bug
         return 0;
      }

      void throwOutRange() {
         throw std::bad_alloc(); //Bug
      }

      void throwAny() {
         return;  //Bug
      }

      bool isInRange_0_to_9(int number) {
         if( number < 0 )
            return false;  //Ok
         if( number > 5)
            return false;  //Bug

         return true;
      }
};

#endif
